export const genNutUICategory = (myCategory) => {
    return myCategory.map(
        item => {
            item.catId = item.id
            item.catName = item.name
            item.catType = 1
            item.showPic = true
            item.showVide = false
            item.children = {
                catId: item.id,
                catName: item.name,
                catLevel: 2,
                catType: 1,
                showPic: true,
                showVide: false,
                childCateList: item.subs.map(
                    i => {
                        i.backImg = i.img
                        i.catId = i.id
                        i.catName = i.name
                        i.showPic = true
                        i.showVide = false
                        return i
                    }
                )
            }
            return item
        }
    )

}